export function formateDate( num,format){

  num=parseInt(num)
  let d=new Date()
  let year=d.getFullYear()
  let month=d.getMonth()+1
  month=month<10?'0'+month:month
  let date=d.getDate()
  date=date<10?'0'+date:date
  let hours=d.getHours()
  hours=hours<10?'0'+hours:hours
  let minutes=d.getMinutes()
  minutes=minutes<10?'0'+minutes:minutes
  if(format==='short'){
    return `${year}-${month}-${date}`
  }else if(format==='long'){
    return `${year}-${month}-${date} ${hours}:${minutes}`
  }



  // return num.Format("yyyy-MM-dd hh:mm");
}
